{% extends "base.html" %}

{% block title %}页面未找到 - 图片定制工具{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-lg-6 col-md-8 text-center">
            <div class="error-page py-5">
                <div class="error-code display-1 text-primary mb-4">404</div>
                <h2 class="mb-3">页面未找到</h2>
                <p class="text-muted mb-4">
                    抱歉，您访问的页面不存在或已被移动。
                </p>
                <div class="d-flex justify-content-center gap-3">
                    <a href="{{ url_for('index') }}" class="btn btn-primary">
                        <i class="bi bi-house-door me-1"></i>返回首页
                    </a>
                    <button class="btn btn-outline-secondary" onclick="history.back()">
                        <i class="bi bi-arrow-left me-1"></i>返回上页
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block extra_css %}
<style>
.error-page {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-code {
    font-weight: 700;
    font-size: 8rem;
    line-height: 1;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
}
</style>
{% endblock %}
